#include<stdio.h>
struct Samples
{
	char samid[7];
	int sda;
	int sdb;
	int sdc;
	int sf;
};
struct Samples lowf;
struct Samples midf;
struct Samples highf;
int main()
{
	struct Samples sample = { "000001",256809,1023,1265 };
	sample.sf = (5 * sample.sda + sample.sdb - sample.sdc + 100) / 128;
	if (sample.sf > 100)
	{
		lowf = sample;
	}
	else if (sample.sf < 100)
	{
		highf = sample;
	}
	else
	{
		midf = sample;
	}
	return 0;
}